﻿#include "FundInfo.h"

FundInfo::FundInfo(QString code, QString name, QString type)
	:code(code),
	name(name),
	type(type)
{
}
FundInfo::FundInfo(std::string code, std::string name, std::string type)
	:code(code.c_str()),
	name(name.c_str()),
	type(type.c_str())
{
}
HistoricalDetails::HistoricalDetails(/*QString date, */QString AverVal, QString CumuVal, QString probab, QString applyPurchase, QString redeem) :
	/*date(date),*/
	applyPurchase(applyPurchase),
	redeem(redeem)
{
	this->AverVal = AverVal.toFloat();
	this->CumuVal = CumuVal.toFloat();
	this->probab = probab.toFloat();
}
HistoricalDetails::HistoricalDetails(std::string AverVal, std::string CumuVal, std::string probab, std::string applyPurchase, std::string redeem) :
	/*date(date),*/
	applyPurchase(applyPurchase.c_str()),
	redeem(redeem.c_str())
{
	this->AverVal = atof(AverVal.c_str());
	this->CumuVal = atof(CumuVal.c_str());
	this->probab = atof(probab  .c_str());
}
